<?php  
class coursesavailable extends CI_Controller{
function coursesavailable(){
   parent::__construct();
   $this->load->model('course_model');
   $this->load->helper("url_helper");
   $this->load->model('common_model');
       session_start();
   // session_start();
 }

public function index(){
		$result=$this->common_model->getKeywords('courses'); 
		$data['keywords']=$result;
		$course_details=$this->course_model->selectcourse();

		$data['course_details'] = '';               
 		if($course_details!=false){
		      $data['course_details']=$course_details;
		  }
	  	
		$this->load->view('courses',$data);
	   
	}

}

 